/* 数字竞猜分析平台样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 顶部导航页签 */
.header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.lottery-tabs {
    display: flex;
    gap: 10px;
}

.lottery-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: #cccccc;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lottery-tab.active {
    background: #FF8C42;
}

.lottery-tab:hover:not(.active) {
    background: #b8b8b8;
}

/* 玩法页签 */
.game-nav {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.game-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 15px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-tab.active {
    background: #FF8C42;
    color: #fff;
}

.game-tab:hover:not(.active) {
    background: #dee2e6;
}

/* 子玩法页签 */
.sub-nav {
    background: #f1f3f4;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sub-tabs {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.sub-tabs.active {
    display: flex;
}

.sub-tab {
    padding: 6px 12px;
    border: none;
    border-radius: 12px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sub-tab.active {
    background: #FF8C42;
    color: #fff;
}

.sub-tab:hover:not(.active) {
    background: #dee2e6;
}

/* 投注说明 */
.betting-info {
    background: #fff3cd;
    padding: 12px 20px;
    border-left: 4px solid #FF8C42;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.betting-info i {
    color: #FF8C42;
    margin-right: 8px;
}

.odds {
    color: #FF8C42;
    font-weight: bold;
}

/* 主要内容区域 */
.main-content {
    padding: 20px;
    background: #f8f9fa;
}

.content-panel {
    display: none;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-panel.active {
    display: block;
}

/* 号码选择区域 */
.number-section {
    margin-bottom: 20px;
}

.section-label {
    background: #343a40;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0;
}

.number-grid {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 8px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    max-width: 100%;
}

.number-btn {
    width: 45px;
    height: 45px;
    border: 2px solid;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 波色样式 */
.number-btn.red {
    border-color: #dc3545;
    color: #dc3545;
}

.number-btn.red:hover,
.number-btn.red.selected {
    background: #dc3545;
    color: #fff;
}

.number-btn.blue {
    border-color: #007bff;
    color: #007bff;
}

.number-btn.blue:hover,
.number-btn.blue.selected {
    background: #007bff;
    color: #fff;
}

.number-btn.green {
    border-color: #28a745;
    color: #28a745;
}

.number-btn.green:hover,
.number-btn.green.selected {
    background: #28a745;
    color: #fff;
}

/* 选择信息 */
.selection-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.confirm-selection-btn {
    background: #FF8C42;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.confirm-selection-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.confirm-selection-btn:hover:not(:disabled) {
    background: #e67e22;
}

/* 两面投注网格 */
.sides-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.side-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.15s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 80px;
    justify-content: center;
}

.side-btn:hover {
    border-color: #FF8C42;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.2);
}

.side-btn.selected {
    background: #FF8C42;
    color: #fff;
    border-color: #FF8C42;
}

.bet-name {
    font-size: 16px;
    font-weight: bold;
}

.bet-odds {
    font-size: 12px;
    color: #6c757d;
}

.side-btn.selected .bet-odds {
    color: rgba(255, 255, 255, 0.8);
}

.odds-text {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.2;
}

.side-btn.selected .odds-text {
    color: rgba(255, 255, 255, 0.8);
}

/* 投注清单 */
.betting-list {
    background: #fff;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 坐庄界面隐藏投注清单 */
body.banker-view .betting-list {
    display: none;
}

.betting-list-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.betting-list-header h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.betting-list-header small {
    font-size: 12px;
}

.bet-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.bet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.bet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bet-type {
    font-weight: bold;
    color: #333;
}

.bet-count {
    font-size: 12px;
    color: #6c757d;
}

.bet-amount {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 15px;
}

.amount-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.bet-odds {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 15px;
}

.odds-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    min-width: 80px;
}

.odds-history-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #6c757d;
    transition: all 0.2s;
}

.odds-history-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.odds-history-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 120px;
    max-height: 200px;
    overflow-y: auto;
}

.odds-history-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    font-size: 12px;
    transition: background-color 0.2s;
}

.odds-history-item:hover {
    background: #f8f9fa;
}

.odds-history-item:last-child {
    border-bottom: none;
}

.bet-odds {
    position: relative;
}

.bet-potential {
    font-size: 12px;
    color: #28a745;
    margin-right: 15px;
}

.potential-amount {
    font-weight: bold;
}

.delete-bet {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.delete-bet:hover {
    background: #c82333;
}

/* 投注汇总 */
.betting-summary {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-info {
    font-size: 16px;
    color: #333;
}

.summary-info span {
    color: #FF8C42;
    font-weight: bold;
}

.submit-bet-btn {
    background: #FF8C42;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-bet-btn:hover {
    background: #e67e22;
}

/* 投注确认弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.lottery-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.lottery-info div {
    margin-bottom: 5px;
}

.bet-details {
    margin-bottom: 15px;
}

.details-label {
    font-weight: bold;
    margin-bottom: 8px;
}

.details-list {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.detail-item {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.total-amount {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #FF8C42;
    padding: 15px;
    background: #fff3cd;
    border-radius: 4px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn:hover {
    background: #5a6268;
}

.confirm-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-btn:hover {
    background: #0056b3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .lottery-tabs,
    .game-tabs,
    .sub-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .lottery-tab,
    .game-tab,
    .sub-tab {
        flex-shrink: 0;
    }
    
    .number-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
    }
    
    .number-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .sides-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .bet-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .bet-amount,
    .bet-odds,
    .bet-potential {
        margin: 0;
        justify-content: center;
    }
    
    .betting-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .number-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
        padding: 15px;
    }
    
    .number-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .sides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .side-btn {
        min-height: 70px;
        padding: 10px 5px;
    }
    
    .bet-name {
        font-size: 14px;
    }
    
    .bet-odds {
        font-size: 11px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-panel.active {
    animation: fadeIn 0.3s ease;
}

.modal.active .modal-content {
    animation: fadeIn 0.3s ease;
}

/* 滚动条样式 */
.bet-items::-webkit-scrollbar,
.details-list::-webkit-scrollbar,
.sub-tabs::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.bet-items::-webkit-scrollbar-track,
.details-list::-webkit-scrollbar-track,
.sub-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.bet-items::-webkit-scrollbar-thumb,
.details-list::-webkit-scrollbar-thumb,
.sub-tabs::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.bet-items::-webkit-scrollbar-thumb:hover,
.details-list::-webkit-scrollbar-thumb:hover,
.sub-tabs::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 界面切换按钮 */
.view-switch {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.switch-btn {
    padding: 10px 20px;
    border: 2px solid #FF8C42;
    border-radius: 20px;
    background: #fff;
    color: #FF8C42;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-btn.active {
    background: #FF8C42;
    color: #fff;
}

.switch-btn:hover:not(.active) {
    background: #fff5f0;
}

.history-header {
    display: grid;
    grid-template-columns: 80px 100px 80px 1fr 60px 60px 80px;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
    font-weight: bold;
    color: #343a40;
    font-size: 12px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: grid;
    grid-template-columns: 80px 100px 80px 1fr 60px 60px 80px;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item span {
    color: #6c757d;
}

.status {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
    font-weight: bold;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.win {
    background: #d4edda;
    color: #155724;
}

.status.lose {
    background: #f8d7da;
    color: #721c24;
}



/* 连码赔率表样式 */
.odds-table {
    background: #343a40;
    color: #fff;
    border-radius: 8px;
    margin-top: 20px;
    padding: 15px;
    max-width: 300px;
}

.odds-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #495057;
    margin-bottom: 10px;
}

.odds-title {
    font-weight: bold;
    font-size: 14px;
}

.odds-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #495057;
}

.odds-row:last-child {
    border-bottom: none;
}

.odds-label {
    font-size: 14px;
}

.odds-value {
    font-size: 14px;
    font-weight: bold;
    color: #FF8C42;
}

/* 响应式设计 - 连码赔率表 */
@media (max-width: 768px) {
    .odds-table {
        max-width: 100%;
        margin-top: 15px;
    }
    
    .odds-header,
    .odds-row {
        font-size: 13px;
    }
}

/* 半波玩法样式 */
.banbo-section {
    margin-bottom: 20px;
}

.banbo-grid-detailed {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 8px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 100%;
}

.banbo-btn-detailed {
    padding: 12px 8px;
    border: 2px solid;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 100px;
    justify-content: center;
    position: relative;
}

.banbo-btn-detailed:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.banbo-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.banbo-numbers {
    font-size: 10px;
    line-height: 1.2;
    margin: 4px 0;
    color: #666;
    word-spacing: 2px;
}

.banbo-odds {
    font-size: 11px;
    font-weight: normal;
    margin-top: 4px;
}

/* 红波按钮 */
.banbo-btn-detailed.red {
    border-color: #dc3545;
    color: #dc3545;
}

.banbo-btn-detailed.red:hover,
.banbo-btn-detailed.red.selected {
    background: #dc3545;
    color: #fff;
}

.banbo-btn-detailed.red.selected .banbo-numbers {
    color: rgba(255, 255, 255, 0.9);
}

/* 蓝波按钮 */
.banbo-btn-detailed.blue {
    border-color: #007bff;
    color: #007bff;
}

.banbo-btn-detailed.blue:hover,
.banbo-btn-detailed.blue.selected {
    background: #007bff;
    color: #fff;
}

.banbo-btn-detailed.blue.selected .banbo-numbers {
    color: rgba(255, 255, 255, 0.9);
}

/* 绿波按钮 */
.banbo-btn-detailed.green {
    border-color: #28a745;
    color: #28a745;
}

.banbo-btn-detailed.green:hover,
.banbo-btn-detailed.green.selected {
    background: #28a745;
    color: #fff;
}

.banbo-btn-detailed.green.selected .banbo-numbers {
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 - 半波详细版 */
@media (max-width: 1200px) {
    .banbo-grid-detailed {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
}

@media (max-width: 992px) {
    .banbo-grid-detailed {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .banbo-grid-detailed {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 15px;
    }
    
    .banbo-btn-detailed {
        padding: 8px 6px;
        min-height: 85px;
    }
    
    .banbo-title {
        font-size: 13px;
    }
    
    .banbo-numbers {
        font-size: 9px;
    }
    
    .banbo-odds {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .banbo-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .banbo-btn-detailed {
        padding: 10px 8px;
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .banbo-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .banbo-btn-detailed {
        padding: 8px 6px;
        min-height: 80px;
    }
    
    .banbo-title {
        font-size: 12px;
    }
    
    .banbo-numbers {
        font-size: 8px;
    }
    
    .banbo-odds {
        font-size: 9px;
    }
}

/* 生肖玩法样式 */
.animal-section {
    margin-bottom: 20px;
}

.animal-grid {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 100%;
}

.animal-btn {
    padding: 15px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 120px;
    justify-content: center;
    position: relative;
}

.animal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-color: #FF8C42;
}

.animal-btn.selected {
    background: #FF8C42;
    border-color: #FF8C42;
    color: #fff;
}

.animal-btn.benming {
    border-color: #dc3545;
}

.animal-btn.benming.selected {
    background: #dc3545;
    border-color: #dc3545;
}

.animal-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.animal-numbers {
    font-size: 12px;
    line-height: 1.3;
    margin: 4px 0;
    color: #666;
    word-spacing: 2px;
}

.animal-btn.selected .animal-numbers {
    color: rgba(255, 255, 255, 0.9);
}

.animal-odds {
    font-size: 11px;
    font-weight: normal;
    margin-top: 4px;
    color: #FF8C42;
}

.animal-btn.selected .animal-odds {
    color: rgba(255, 255, 255, 0.9);
}

/* 总肖玩法样式 */
.zongxiao-section {
    margin-bottom: 20px;
}

.zongxiao-grid {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 100%;
}

.zongxiao-btn {
    padding: 20px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 100px;
    justify-content: center;
}

.zongxiao-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-color: #FF8C42;
}

.zongxiao-btn.selected {
    background: #FF8C42;
    border-color: #FF8C42;
    color: #fff;
}

.zongxiao-name {
    font-size: 16px;
    font-weight: bold;
}

.zongxiao-odds {
    font-size: 14px;
    color: #FF8C42;
}

.zongxiao-btn.selected .zongxiao-odds {
    color: rgba(255, 255, 255, 0.9);
}

/* 合肖赔率表样式 */
.hexiao-section {
    margin-bottom: 20px;
}

.hexiao-odds-table {
    margin-top: 20px;
    max-width: 600px;
}

/* 响应式设计 - 生肖玩法 */
@media (max-width: 1200px) {
    .animal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .animal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .zongxiao-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .animal-btn {
        padding: 12px 8px;
        min-height: 100px;
    }
    
    .animal-name {
        font-size: 14px;
    }
    
    .animal-numbers {
        font-size: 11px;
    }
    
    .animal-odds {
        font-size: 10px;
    }
    
    .zongxiao-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .zongxiao-btn {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .zongxiao-name {
        font-size: 14px;
    }
    
    .zongxiao-odds {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .animal-btn {
        padding: 10px 6px;
        min-height: 90px;
    }
    
    .zongxiao-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .animal-btn {
        padding: 8px 5px;
        min-height: 80px;
    }
    
    .animal-name {
        font-size: 13px;
    }
    
    .animal-numbers {
        font-size: 10px;
    }
    
    .animal-odds {
        font-size: 9px;
    }
    
    .zongxiao-btn {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .zongxiao-name {
        font-size: 13px;
    }
    
    .zongxiao-odds {
        font-size: 11px;
    }
}

/* 尾数样式开始 */
.tail-section {
    margin-bottom: 20px;
}

.tail-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tail-grid.single-row {
    flex-direction: row;
    justify-content: center;
}

.tail-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tail-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    text-align: center;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.tail-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tail-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 8px;
    min-width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.tail-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.tail-btn.selected {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.tail-odds {
    font-size: 10px;
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.8;
}

.tail-btn.selected .tail-odds {
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tail-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .tail-label {
        min-width: auto;
        width: 100%;
    }
    
    .tail-numbers {
        width: 100%;
    }
    
    .tail-btn {
        min-width: 50px;
        height: 50px;
        font-size: 14px;
        padding: 8px 4px;
    }
    
    .tail-grid.single-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tail-btn {
        min-width: 45px;
        height: 45px;
        font-size: 12px;
    }
    
    .tail-odds {
        font-size: 9px;
    }
}
/* 尾数样式结束 */

/* 色波样式开始 */
.sebo-section {
    margin-bottom: 20px;
}

.sebo-grid {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 100%;
}

.sebo-btn {
    padding: 15px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    position: relative;
}

.sebo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.sebo-btn.selected {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* 红波按钮 - 未选中状态 */
.sebo-btn.hongbo {
    background: #fff;
    border-color: #dc3545;
    color: #dc3545;
}

.sebo-btn.hongbo:hover {
    background: #f8f9fa;
    border-color: #dc3545;
    color: #dc3545;
}

/* 红波按钮 - 选中状态 */
.sebo-btn.hongbo.selected {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* 绿波按钮 - 未选中状态 */
.sebo-btn.lvbo {
    background: #fff;
    border-color: #28a745;
    color: #28a745;
}

.sebo-btn.lvbo:hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
}

/* 绿波按钮 - 选中状态 */
.sebo-btn.lvbo.selected {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* 蓝波按钮 - 未选中状态 */
.sebo-btn.lanbo {
    background: #fff;
    border-color: #007bff;
    color: #007bff;
}

.sebo-btn.lanbo:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* 蓝波按钮 - 选中状态 */
.sebo-btn.lanbo.selected {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* 和按钮 - 未选中状态 */
.sebo-btn.he {
    background: #fff;
    border-color: #6c757d;
    color: #6c757d;
}

.sebo-btn.he:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    color: #6c757d;
}

/* 和按钮 - 选中状态 */
.sebo-btn.he.selected {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.sebo-odds {
    font-size: 11px;
    margin-top: 3px;
    opacity: 0.9;
    font-weight: normal;
}

.sebo-btn.selected .sebo-odds {
    opacity: 1;
    font-weight: normal;
}

@media (max-width: 768px) {
    .sebo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px;
    }
    
    .sebo-btn {
        padding: 12px 8px;
        font-size: 13px;
        min-height: 55px;
    }
    
    .sebo-odds {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .sebo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px;
    }
    
    .sebo-btn {
        padding: 10px 6px;
        font-size: 12px;
        min-height: 50px;
    }
    
    .sebo-odds {
        font-size: 9px;
    }
}
/* 色波样式结束 */

/* 坐庄系统样式开始 */
.banker-content {
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.banker-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banker-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.banker-header h2 i {
    color: #FFD700;
    margin-right: 10px;
}

.banker-controls {
    display: flex;
    gap: 10px;
}

.banker-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.banker-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.banker-btn.primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.banker-btn.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.banker-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.summary-value.danger {
    color: #dc3545;
}

.summary-value.profit {
    color: #28a745;
}

.banker-table-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banker-table-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.banker-table {
    width: 100%;
    border-collapse: collapse;
    display: table;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 120px 200px 60px 80px 80px 80px 100px 80px;
    background: #f8f9fa;
    padding: 12px 0;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.table-header span {
    padding: 0 8px;
    text-align: center;
    font-size: 13px;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 120px 200px 60px 80px 80px 80px 100px 80px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.table-row:hover {
    background: #f8f9fa;
}

.table-row span {
    padding: 0 8px;
    text-align: center;
    font-size: 12px;
    word-break: break-all;
}

.table-row .bet-description {
    text-align: left;
    font-size: 11px;
    line-height: 1.2;
}

.delete-bet-banker {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}

.delete-bet-banker:hover {
    background: #c82333;
}

.risk-analysis {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.risk-analysis h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.risk-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.risk-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.risk-controls select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.risk-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.risk-item.profit {
    background: #d4edda;
    border-color: #28a745;
}

.risk-item.loss {
    background: #f8d7da;
    border-color: #dc3545;
}

.risk-item.high-risk {
    background: #721c24;
    color: #fff;
    border-color: #721c24;
}

.risk-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.risk-amount {
    font-size: 14px;
    font-weight: bold;
}

.risk-amount.profit {
    color: #28a745;
}

.risk-amount.loss {
    color: #dc3545;
}

.game-statistics {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-statistics h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.game-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.game-stat-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #007bff;
}

.game-stat-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.game-stat-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.game-stat-amount {
    font-weight: bold;
    color: #007bff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .table-header,
    .table-row {
        grid-template-columns: 60px 100px 150px 50px 70px 70px 70px 80px 60px;
    }
    
    .risk-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .banker-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .banker-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .banker-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .table-header span,
    .table-row span {
        text-align: left;
        padding: 5px;
        border-bottom: 1px solid #eee;
    }
    
    .risk-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .risk-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* 开奖结果输入样式 */
.draw-result-input {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #007bff;
}

.draw-result-input h4 {
    margin: 0 0 20px 0;
    color: #007bff;
    font-size: 18px;
}

.draw-result-input h4 i {
    color: #FFD700;
    margin-right: 8px;
}

.draw-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.draw-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.draw-input-group label {
    font-weight: bold;
    color: #333;
    min-width: 100px;
    font-size: 14px;
}

.draw-input-group input[type="text"],
.draw-input-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 80px;
    text-align: center;
}

.draw-input-group input[type="text"] {
    width: 120px;
}

.number-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.draw-input-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 实际盈亏结果样式 */
.actual-result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.actual-result h5 {
    margin: 0 0 15px 0;
    color: #28a745;
    font-size: 16px;
}

.actual-result h5 i {
    margin-right: 8px;
}

.actual-result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.result-card {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 3px solid #007bff;
}

.result-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.result-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.result-value.danger {
    color: #dc3545;
}

.result-value.profit {
    color: #28a745;
}

/* 中奖详情样式 */
.win-details {
    margin-top: 15px;
}

.win-details h6 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.win-details h6 i {
    margin-right: 6px;
    color: #007bff;
}

.win-details-table {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
}

.win-detail-header {
    display: grid;
    grid-template-columns: 80px 120px 1fr 80px 80px 100px;
    background: #f8f9fa;
    padding: 10px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 12px;
}

.win-detail-row {
    display: grid;
    grid-template-columns: 80px 120px 1fr 80px 80px 100px;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    align-items: center;
}

.win-detail-row:hover {
    background: #f8f9fa;
}

.win-detail-row span {
    word-break: break-all;
}

.win-detail-description {
    font-size: 11px;
    line-height: 1.2;
}

.win-badge {
    background: #28a745;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .draw-input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .draw-input-group label {
        min-width: auto;
    }
    
    .number-inputs {
        justify-content: center;
    }
    
    .draw-input-actions {
        justify-content: center;
    }
    
    .actual-result-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .win-detail-header,
    .win-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .win-detail-header span,
    .win-detail-row span {
        text-align: left;
        padding: 3px 0;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 480px) {
    .banker-content {
        padding: 10px;
    }
    
    .banker-summary {
        grid-template-columns: 1fr;
    }
    
    .game-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actual-result-summary {
        grid-template-columns: 1fr;
    }
    
    .draw-result-input {
        padding: 15px;
    }
    
    .number-inputs {
        gap: 5px;
    }
    
    .draw-input-group input[type="number"] {
        width: 60px;
    }
}

/* 服务器开奖逻辑样式 */
.server-lottery-section {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.server-lottery-section h4 {
    margin: 0 0 15px 0;
    color: #007bff;
    font-size: 18px;
}

.server-lottery-section h4 i {
    margin-right: 8px;
}

.server-lottery-container {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
}

.server-lottery-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.server-lottery-info p {
    margin: 0;
    color: #1565c0;
    font-size: 14px;
}

.server-lottery-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.banker-btn.success {
    background: #28a745;
    border-color: #28a745;
}

.banker-btn.success:hover {
    background: #218838;
    border-color: #218838;
}

.optimal-result {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.optimal-result h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.optimal-result h5 i {
    margin-right: 8px;
    color: #ffc107;
}

.optimal-result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.optimal-tema {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #dc3545 !important;
}

.optimal-zhengma {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.optimal-actions {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.lottery-analysis {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
}

.lottery-analysis h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.lottery-analysis h5 i {
    margin-right: 8px;
    color: #17a2b8;
}

.analysis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.analysis-card {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analysis-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.analysis-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.analysis-value.profit {
    color: #28a745;
}

.analysis-value.danger {
    color: #dc3545;
}

.top-results {
    margin-top: 20px;
}

.top-results h6 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
}

.top-results h6 i {
    margin-right: 8px;
    color: #6c757d;
}

.top-results-table {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-results-header {
    display: grid;
    grid-template-columns: 60px 80px 200px 100px 100px;
    background: #007bff;
    color: #fff;
    padding: 12px 0;
    font-weight: bold;
    font-size: 13px;
}

.top-results-header span {
    padding: 0 8px;
    text-align: center;
}

.top-results-row {
    display: grid;
    grid-template-columns: 60px 80px 200px 100px 100px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.top-results-row:hover {
    background: #f8f9fa;
}

.top-results-row:last-child {
    border-bottom: none;
}

.top-results-row span {
    padding: 0 8px;
    text-align: center;
    font-size: 12px;
}

.top-results-row .zhengma-numbers {
    text-align: left;
    font-size: 11px;
    line-height: 1.2;
}

.top-results-row .profit-value {
    font-weight: bold;
}

.top-results-row .profit-value.positive {
    color: #28a745;
}

.top-results-row .profit-value.negative {
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .server-lottery-actions {
        flex-direction: column;
    }
    
    .optimal-result-summary,
    .analysis-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-results-header,
    .top-results-row {
        grid-template-columns: 40px 60px 120px 80px 80px;
        font-size: 11px;
    }
    
    .top-results-header span,
    .top-results-row span {
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .server-lottery-section {
        padding: 15px;
    }
    
    .optimal-result-summary,
    .analysis-summary {
        grid-template-columns: 1fr;
    }
    
    .top-results-header,
    .top-results-row {
        grid-template-columns: 30px 50px 100px 60px 60px;
        font-size: 10px;
    }
}

/* 亏损排序面板样式 */
.loss-ranking {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loss-ranking h5 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.loss-ranking h5 i {
    color: #dc3545;
    margin-right: 8px;
}

.loss-ranking-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.loss-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
}

.summary-item .label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.summary-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.summary-item .value.positive {
    color: #28a745;
}

.summary-item .value.negative {
    color: #dc3545;
}

.loss-ranking-container {
    margin-top: 20px;
}

.loss-ranking-container h6 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.loss-ranking-container h6 i {
    color: #007bff;
    margin-right: 8px;
}

.loss-ranking-table {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    /* 确保表格充分利用容器宽度 */
    width: 100%;
    min-width: 100%;
}

.loss-ranking-count {
    background: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    text-align: right;
    font-size: 14px;
    color: #6c757d;
}

.loss-ranking-header {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #fff;
    display: flex;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loss-ranking-header span {
    padding: 15px 8px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background-color 0.2s ease;
    /* 确保文本不会被截断 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loss-ranking-header span:hover {
    background: rgba(255,255,255,0.1);
}

.loss-ranking-header .rank-col { flex: 0 0 50px; }   /* 排名 - 进一步缩小 */
.loss-ranking-header .tema-col { flex: 0 0 60px; }  /* 特码 - 进一步缩小 */
.loss-ranking-header .tema-loss-col { flex: 2; min-width: 200px; }  /* 特码最大亏损 - 更大空间 */
.loss-ranking-header .total-loss-col { flex: 2; min-width: 200px; }  /* 总玩法最大亏损 - 更大空间 */
.loss-ranking-header .actions-col { flex: 0 0 80px; border-right: none; } /* 操作 - 确保显示完整 */

.loss-ranking-body {
    max-height: 1500px;
    overflow-y: auto;
    background: #f8f9fa;
}

.loss-ranking-row {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.loss-ranking-row:hover {
    opacity: 0.8;
}

/* 旧的亏损等级样式已被新的特码亏损等级样式和总玩法亏损等级样式替代 */



/* 盈利等级 - 无背景色 */
.loss-ranking-row.profit-level-1 {
    color: #333;
}

.loss-ranking-row.profit-level-2 {
    color: #333;
}

.loss-ranking-row.profit-level-3 {
    color: #333;
}

.loss-ranking-row.profit-level-4 {
    color: #333;
}

.loss-ranking-row.profit-level-5 {
    color: #333;
    font-weight: 600;
}



/* 盈亏平衡 - 无背景色 */
.loss-ranking-row.profit-level-0,
.loss-ranking-row.tema-loss-level-0,
.loss-ranking-row.tema-loss-level-0.total-loss-level-1,
.loss-ranking-row.tema-loss-level-0.total-loss-level-2,
.loss-ranking-row.tema-loss-level-0.total-loss-level-3,
.loss-ranking-row.tema-loss-level-0.total-loss-level-4,
.loss-ranking-row.tema-loss-level-0.total-loss-level-5,
.loss-ranking-row.total-loss-level-0 {
    color: #333 !important;
}

/* 特码亏损等级 0 - 无背景色 */
.loss-ranking-row.tema-loss-level-0 {
    color: #333;
}

/* 特码盈利样式 - 无背景色 */
.loss-ranking-row.tema-profit,
.loss-ranking-row.tema-profit.total-loss-level-1,
.loss-ranking-row.tema-profit.total-loss-level-2,
.loss-ranking-row.tema-profit.total-loss-level-3,
.loss-ranking-row.tema-profit.total-loss-level-4,
.loss-ranking-row.tema-profit.total-loss-level-5 {
    color: #333 !important;
}

.loss-ranking-row.tema-profit .tema-loss {
    color: #28a745 !important; /* 绿色文字 */
    font-weight: 600;
}

.loss-ranking-row.tema-profit .total-loss {
    color: #28a745 !important; /* 绿色文字 */
    font-weight: 600;
}

/* 总玩法盈亏样式 - 无背景色 */
.loss-ranking-row.total-loss-positive {
    color: #333 !important;
}

.loss-ranking-row.total-loss-positive .total-loss {
    color: #28a745 !important; /* 绿色文字 */
    font-weight: 600;
}

/* 总玩法亏损等级样式 - 无背景色 */
.loss-ranking-row.total-loss-level-0 {
    color: #333 !important;
}

.loss-ranking-row.total-loss-level-1 {
    color: #333 !important;
}

.loss-ranking-row.total-loss-level-1 .total-loss {
    color: #dc3545 !important;
    font-weight: 600;
}

.loss-ranking-row.total-loss-level-2 {
    color: #333 !important;
}

.loss-ranking-row.total-loss-level-2 .total-loss {
    color: #dc3545 !important;
    font-weight: 600;
}

.loss-ranking-row.total-loss-level-3 {
    color: #333 !important;
}

.loss-ranking-row.total-loss-level-3 .total-loss {
    color: #dc3545 !important;
    font-weight: 700;
}

.loss-ranking-row.total-loss-level-4 {
    color: #333 !important;
}

.loss-ranking-row.total-loss-level-4 .total-loss {
    color: #dc3545 !important;
    font-weight: 700;
}

.loss-ranking-row.total-loss-level-5 {
    color: #333 !important;
}

.loss-ranking-row.total-loss-level-5 .total-loss {
    color: #dc3545 !important;
    font-weight: 700;
}

/* 特码亏损等级 1 - 无背景色 */
.loss-ranking-row.tema-loss-level-1,
.loss-ranking-row.tema-loss-level-1.total-loss-level-1,
.loss-ranking-row.tema-loss-level-1.total-loss-level-2,
.loss-ranking-row.tema-loss-level-1.total-loss-level-3,
.loss-ranking-row.tema-loss-level-1.total-loss-level-4,
.loss-ranking-row.tema-loss-level-1.total-loss-level-5 {
    color: #333 !important;
}

.loss-ranking-row.tema-loss-level-1 .tema-loss {
    color: #dc3545 !important;
    font-weight: 600;
}

/* 特码亏损等级 2 - 无背景色 */
.loss-ranking-row.tema-loss-level-2,
.loss-ranking-row.tema-loss-level-2.total-loss-level-1,
.loss-ranking-row.tema-loss-level-2.total-loss-level-2,
.loss-ranking-row.tema-loss-level-2.total-loss-level-3,
.loss-ranking-row.tema-loss-level-2.total-loss-level-4,
.loss-ranking-row.tema-loss-level-2.total-loss-level-5 {
    color: #333 !important;
}

.loss-ranking-row.tema-loss-level-2 .tema-loss {
    color: #dc3545 !important;
    font-weight: 600;
}

/* 特码亏损等级 3 - 无背景色 */
.loss-ranking-row.tema-loss-level-3,
.loss-ranking-row.tema-loss-level-3.total-loss-level-1,
.loss-ranking-row.tema-loss-level-3.total-loss-level-2,
.loss-ranking-row.tema-loss-level-3.total-loss-level-3,
.loss-ranking-row.tema-loss-level-3.total-loss-level-4,
.loss-ranking-row.tema-loss-level-3.total-loss-level-5 {
    color: #333 !important;
}

.loss-ranking-row.tema-loss-level-3 .tema {
    color: #333;
    font-weight: 700;
}

.loss-ranking-row.tema-loss-level-3 .tema-loss {
    color: #dc3545 !important;
    font-weight: 700;
}

/* 特码亏损等级 4 - 无背景色 */
.loss-ranking-row.tema-loss-level-4,
.loss-ranking-row.tema-loss-level-4.total-loss-level-1,
.loss-ranking-row.tema-loss-level-4.total-loss-level-2,
.loss-ranking-row.tema-loss-level-4.total-loss-level-3,
.loss-ranking-row.tema-loss-level-4.total-loss-level-4,
.loss-ranking-row.tema-loss-level-4.total-loss-level-5 {
    color: #333 !important;
}

.loss-ranking-row.tema-loss-level-4 .tema-loss {
    color: #dc3545 !important;
    font-weight: 700;
}

/* 特码亏损等级 5 - 无背景色 */
.loss-ranking-row.tema-loss-level-5,
.loss-ranking-row.tema-loss-level-5.total-loss-level-1,
.loss-ranking-row.tema-loss-level-5.total-loss-level-2,
.loss-ranking-row.tema-loss-level-5.total-loss-level-3,
.loss-ranking-row.tema-loss-level-5.total-loss-level-4,
.loss-ranking-row.tema-loss-level-5.total-loss-level-5 {
    color: #333 !important;
    font-weight: 600;
}

.loss-ranking-row.tema-loss-level-5 .tema-loss {
    color: #dc3545 !important;
    font-weight: 700;
}

.loss-ranking-row span {
    padding: 10px 6px;
    text-align: center;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dee2e6;
    /* 确保文本不会被截断 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loss-ranking-row span:nth-child(1) { flex: 0 0 50px; }   /* 排名 - 进一步缩小 */
.loss-ranking-row span:nth-child(2) { flex: 0 0 60px; }  /* 特码 - 进一步缩小 */
.loss-ranking-row span:nth-child(3) { flex: 2; min-width: 200px; }  /* 特码最大亏损 - 更大空间 */
.loss-ranking-row span:nth-child(4) { flex: 2; min-width: 200px; }  /* 总玩法最大亏损 - 更大空间 */
.loss-ranking-row span:nth-child(5) { flex: 0 0 80px; border-right: none; } /* 操作 - 确保显示完整 */

.loss-ranking-row .rank {
    font-weight: 600;
    color: #495057;
}

.loss-ranking-row .tema {
    font-weight: 600;
    border-radius: 4px;
    margin: 2px;
    /* 颜色和背景由各种亏损等级样式控制 */
}



.loss-ranking-row .tema-loss,
.loss-ranking-row .total-loss {
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
    /* 颜色由盈亏样式控制，不设置固定颜色 */
}

/* 默认样式 - 当没有特殊盈亏等级时使用 */
.loss-ranking-row:not(.tema-profit):not(.total-loss-positive):not(.tema-loss-level-1):not(.tema-loss-level-2):not(.tema-loss-level-3):not(.tema-loss-level-4):not(.tema-loss-level-5):not(.total-loss-level-1):not(.total-loss-level-2):not(.total-loss-level-3):not(.total-loss-level-4):not(.total-loss-level-5) .tema-loss,
.loss-ranking-row:not(.tema-profit):not(.total-loss-positive):not(.tema-loss-level-1):not(.tema-loss-level-2):not(.tema-loss-level-3):not(.tema-loss-level-4):not(.tema-loss-level-5):not(.total-loss-level-1):not(.total-loss-level-2):not(.total-loss-level-3):not(.total-loss-level-4):not(.total-loss-level-5) .total-loss {
    color: #333 !important;
    background: white !important;
}

/* 特码号码波色样式 */
.loss-ranking-row .tema.red {
    color: white !important;
    background: #dc3545 !important; /* 红波 */
}

.loss-ranking-row .tema.blue {
    color: white !important;
    background: #007bff !important; /* 蓝波 */
}

.loss-ranking-row .tema.green {
    color: white !important;
    background: #28a745 !important; /* 绿波 */
}

/* 默认特码样式（当没有波色class时） */
.loss-ranking-row:not(.tema-profit):not(.total-loss-positive):not(.tema-loss-level-1):not(.tema-loss-level-2):not(.tema-loss-level-3):not(.tema-loss-level-4):not(.tema-loss-level-5):not(.total-loss-level-1):not(.total-loss-level-2):not(.total-loss-level-3):not(.total-loss-level-4):not(.total-loss-level-5) .tema:not(.red):not(.blue):not(.green) {
    color: #007bff !important;
    background: #e3f2fd !important;
}

/* 被投注的号码高亮显示 */
.bet-number {
    background-color: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9em;
    margin: 0 1px;
}



.loss-ranking-row .actions {
    padding: 5px;
    display: flex;
    gap: 4px;
}

.show-bets-btn {
    border: none;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: #28a745;
    color: #fff;
    white-space: nowrap;
    min-width: 50px;
}

.show-bets-btn:hover {
    background: #1e7e34;
}

/* 投注详情展示样式 */
.bet-details-row {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    animation: slideDown 0.3s ease;
}

.bet-details-content {
    padding: 15px;
}

/* 正码组合表格样式 */
.zhengma-combination-table {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.zhengma-combination-header {
    background: #495057;
    color: #fff;
    display: flex;
    font-weight: 600;
    font-size: 14px;
}

.zhengma-combination-header span {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #5a6268;
}

.zhengma-combination-header span:nth-child(1) { flex: 2; }          /* 正码组合 */
.zhengma-combination-header span:nth-child(2) { flex: 0 0 100px; }  /* 概率 */
.zhengma-combination-header span:nth-child(3) { flex: 0 0 120px; }  /* 最大亏损 */
.zhengma-combination-header span:nth-child(4) { flex: 0 0 100px; border-right: none; } /* 详情 */

.zhengma-combination-body {
    background: #fff;
}

.zhengma-combination-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.zhengma-combination-row:hover {
    background: #f8f9fa;
}

.zhengma-combination-row span {
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dee2e6;
}

.zhengma-combination-row span:nth-child(1) { flex: 2; }          /* 正码组合 */
.zhengma-combination-row span:nth-child(2) { flex: 0 0 100px; }  /* 概率 */
.zhengma-combination-row span:nth-child(3) { flex: 0 0 120px; }  /* 最大亏损 */
.zhengma-combination-row span:nth-child(4) { flex: 0 0 100px; border-right: none; } /* 详情 */

.zhengma-combination-row .zhengma-display {
    text-align: left;
    justify-content: flex-start;
    color: #495057;
    font-weight: 500;
}

.zhengma-combination-row .probability {
    color: #6c757d;
    font-weight: 500;
}

.zhengma-combination-row .total-payout {
    color: #dc3545;
    font-weight: 600;
}

.show-zhengma-details-btn {
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: #007bff;
    color: #fff;
}

.show-zhengma-details-btn:hover {
    background: #0056b3;
}

/* 正码详情内容样式 */
.zhengma-details-content {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.bet-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.bet-details-header h4 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.winning-count {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.no-winning-bets {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.winning-bets-table {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.winning-bets-header {
    background: #6c757d;
    color: white;
    display: grid;
    grid-template-columns: 80px 100px 2fr 60px 80px 80px 60px 100px;
    gap: 1px;
    font-weight: 600;
    font-size: 13px;
}

.winning-bets-header span {
    padding: 10px 8px;
    text-align: center;
}

.winning-bets-body {
    background: white;
}

.winning-bet-row {
    display: grid;
    grid-template-columns: 80px 100px 2fr 60px 80px 80px 60px 100px;
    gap: 1px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.winning-bet-row:hover {
    background: #f8f9fa;
}

.winning-bet-row:last-child {
    border-bottom: none;
}

.winning-bet-row span {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winning-bet-row .bet-id {
    font-weight: 600;
    color: #007bff;
    font-family: monospace;
}

.winning-bet-row .game-type {
    color: #495057;
    font-weight: 500;
}

.winning-bet-row .bet-content {
    text-align: left;
    padding-left: 12px;
    color: #6c757d;
}

.winning-bet-row .win-amount {
    color: #28a745;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 大屏幕优化 - 充分利用空间 */
@media (min-width: 1400px) {
    .loss-ranking-header .tema-loss-col,
    .loss-ranking-header .total-loss-col {
        min-width: 250px;
    }
    
    .loss-ranking-row span:nth-child(3),
    .loss-ranking-row span:nth-child(4) {
        min-width: 250px;
    }
    
    .loss-ranking-header span,
    .loss-ranking-row span {
        padding: 12px 10px;
    }
    
    .loss-ranking-header {
        font-size: 17px;
    }
    
    .loss-ranking-row span {
        font-size: 16px;
    }
}

/* 中等屏幕优化 */
@media (min-width: 1200px) and (max-width: 1399px) {
    .loss-ranking-header .tema-loss-col,
    .loss-ranking-header .total-loss-col {
        min-width: 220px;
    }
    
    .loss-ranking-row span:nth-child(3),
    .loss-ranking-row span:nth-child(4) {
        min-width: 220px;
    }
    
    .loss-ranking-header span,
    .loss-ranking-row span {
        padding: 11px 9px;
    }
    
    .loss-ranking-header {
        font-size: 16px;
    }
    
    .loss-ranking-row span {
        font-size: 15px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .loss-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .loss-ranking-header,
    .loss-ranking-row {
        font-size: 13px;
    }
    
    .loss-ranking-header .tema-loss-col,
    .loss-ranking-header .total-loss-col {
        flex: 2;
        min-width: 150px;
    }
    
    .winning-bets-header,
    .winning-bet-row {
        grid-template-columns: 70px 90px 2fr 50px 70px 70px 50px 90px;
    }
    
    .zhengma-combination-header,
    .zhengma-combination-row {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .loss-ranking {
        padding: 15px;
        margin-top: 15px;
    }
    
    .loss-summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .loss-ranking-header,
    .loss-ranking-row {
        font-size: 12px;
    }
    
    .winning-bets-header,
    .winning-bet-row {
        grid-template-columns: 60px 80px 2fr 40px 60px 60px 40px 80px;
        font-size: 11px;
    }
    
    .zhengma-combination-header,
    .zhengma-combination-row {
        font-size: 12px;
    }
    
    .zhengma-combination-header span,
    .zhengma-combination-row span {
        padding: 8px 4px;
    }
    
    .loss-ranking-row .actions {
        flex-direction: column;
        gap: 2px;
    }
    
    .show-bets-btn {
        padding: 2px 4px;
        font-size: 10px;
    }
    
    .loss-ranking-header span,
    .loss-ranking-row span {
        padding: 8px 4px;
    }
    
    .loss-ranking-row span:nth-child(3),
    .loss-ranking-row span:nth-child(4) {
        flex: 2;
        min-width: 150px;
    }
    

    

}

@media (max-width: 480px) {
    .loss-ranking-header,
    .loss-ranking-row {
        font-size: 11px;
    }
    
    .winning-bets-header,
    .winning-bet-row {
        grid-template-columns: 50px 70px 2fr 35px 50px 50px 35px 70px;
        font-size: 10px;
    }
    
    .zhengma-combination-header,
    .zhengma-combination-row {
        font-size: 11px;
    }
    
    .zhengma-combination-header span,
    .zhengma-combination-row span {
        padding: 6px 2px;
    }
    
    .show-zhengma-details-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
    


}

/* 无数据提示样式 */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.no-data-message i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
    display: block;
}



/* 坐庄系统样式结束 */ 